<%@ page language="java" contentType="text/html; charset=utf-8"%>
<%@ page import="java.util.*"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<link href="style/global.css" rel="stylesheet" type="text/css">


<html xmlns="http://www.w3.org/1999/xhtml">
<script type="text/javascript" src="javascript/jquery-1.4.min.js"></script>
<script type="text/javascript">
$().ready(function()
{

$("#mostrar").click(function(event) {
event.preventDefault(); //  阻止默认的行为 ,这个例子把超链接 阻止了,当然此时也可以用 return false;
$("#caja").slideToggle();

//return false;
});

$("#caja a").click(function(event) {
event.preventDefault();
$("#caja").slideUp();

});
});
</script>
	<style type="text/css">
.pic {
	margin-top: 30px;
	margin-left: 30px;
}
</style>
	<style type="text/css">
<!--
#userhomelayer {
 
	
}

#top {
 
	width: 1080px;
	
}

#middle {
 
	width: 1080px;
	 
}

#bottom1 {
 
	width: 1080px;
	
}

#Layer1 {
 
	width: 200px;
	height: 115px;
	z-index: 2;
}
#content{
width: 1080px;
border:1px #d4c1d8 solid;
}
#caja {
display: none;
}
#mostrar{
display:block;
width:70%;
padding:5px;
border:2px solid #D0E8F4;
background-color:#ECF8FD;
}
-->
</style>

	<body>

		<div id="userhomelayer" align="center">
			<div id="top"><%@include file="top.jsp"%></div>
<div id="content">
<table width="100%"><tr><td width="70%" style="border-right:1px #d4c1d8 solid;" align="center">
<div id="pics"><s:if test="potolist.size==0">无图片</s:if>
			<s:iterator value="potolist" status="status">
				<div class="pic">
					<img src="UploadImages/<s:property value ="photo" />" height="300px"
							width="400px"
						alt="<s:property value ="photoDescription"/>" title="<s:property value ="photoDescription"/>" />
				</div>
<s:if test="#status.index%3==2"><br/></s:if>
			</s:iterator>
</div></td><td valign="top" width="30%">
<s:if test="#session.blogUser.account==#session.user.account">
<p id="mostrar">添加图片</p>
	<div id="caja">
			<s:form action="fileUploads" method="POST"
				enctype="multipart/form-data">
				<s:file name="myFile" label="文件" />
				<s:textarea  name="caption" label="描述" cols="30" rows="5"></s:textarea>
				<s:hidden name="albumId"></s:hidden>
				<s:submit label="提交"  value="提交"/>
			</s:form>
	</div>
</s:if>
</td></tr></table>
</div>
			
		</div>
<div id="bottom1"><%@include file="bottom.jsp"%></div>
	</body>
</html>


